import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';

class SvgIcon extends StatelessWidget {
  // Variables
  final String assetName;
  final double? width;
  final double? height;
  final Color? color;

  const SvgIcon(this.assetName,
      {super.key, this.width, this.height, this.color});
  @override
  Widget build(BuildContext context) {
    return SvgPicture.asset(
      assetName,
      width: width ?? 23,
      height: height ?? 23,
      colorFilter: ColorFilter.mode(color ?? Colors.grey, BlendMode.srcIn),
    );
  }
}
